package light.head.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 	公司简介
 */
@Entity
@Table
public class OrganSynopsis implements Serializable{
	private static final long serialVersionUID = 8102491737139248324L;
	private Integer code;					//流水号
	private Integer oc;						//公司编号
	private String content;					//简介内容
	private Integer cu;						//创建人
	private Date ct;						//创建时间
	private List<OrganSynopsisAnnex> list;	//公司简介附件
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column
	public Integer getOc() {
		return oc;
	}
	@Column(length = 10000)
	public String getContent() {
		return content;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(updatable = false, nullable = false)
	public Date getCt() {
		return ct;
	}
	@Transient
	public List<OrganSynopsisAnnex> getList() {
		return list;
	}
	
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setOc(Integer oc) {
		this.oc = oc;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setList(List<OrganSynopsisAnnex> list) {
		this.list = list;
	}
	
	
	
}
